<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
>

<!-- 导入公有的header -->
<head th:include="common/head::header"/>


<body class="hold-transition skin-blue sidebar-mini">
    <!-- =============================================== -->
    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <table class="table table-bordered text-center">
                        <tr>
                            <td width="50%">
                                <Irca:ircaButton text="锁定系统" onclick="lockOs();" ico="fa fa-lock" continuity="false" class="btn btn-block btn-success btn-lg"></Irca:ircaButton>
                            </td>
                            <td width="50%">
                                <Irca:ircaButton text="关机" onclick="poweroff();" ico="fa fa-power-off" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                            </td>
                        </tr>
                    <tr>
                        <td>
                            <Irca:ircaButton text="重启" onclick="reboot();" ico="fa fa-refresh" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                        </td>
                        <td>
                            <Irca:ircaButton text="睡眠" onclick="sleep();" ico="fa fa-krw" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Irca:ircaButton text="截取屏幕保存" onclick="screenCaptureOs();" ico="fa fa-video-camera" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                        </td>

                    </tr>
                    <tr>
                        <td>
                            <Irca:ircaButton text="切换窗口开始" onclick="selectWinStart();" ico="fa fa-th" continuity="false" class="btn btn-block btn-success btn-lg"></Irca:ircaButton>
                        </td>
                        <td>
                            <Irca:ircaButton text="选择窗口" onclick="selectWinChange();" ico="fa fa-arrow-right" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Irca:ircaButton text="切换窗口完成" onclick="selectWinEnd();" ico="fa fa-thumbs-up" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>
                        </td>
                    </tr>
                    <tr >
                        <td colspan="2">
                        <Irca:ircaButton text="隐藏系统所有窗口" onclick="hiddenAllWin();" ico="fa fa-volume-down" continuity="false" class="btn btn-block btn-info btn-lg"></Irca:ircaButton>
                        </td>
                    </tr>
                    <tr >
                        <td colspan="2">
                            <Irca:ircaButton text="系统静音/有声" onclick="systemMuteReduce();" ico="fa fa-bell-slash-o" continuity="false" class="btn btn-block btn-info btn-lg"></Irca:ircaButton>
                        </td>
                    </tr>
                </table>

            </div>
            <!-- /.col -->
        </div>

    </section>
    <!-- /.content -->
    <script type="application/javascript">
        //锁定系统
        function lockOs(){
            parent.sendSystemOsCmd('LOCKOS_CMD','-1');
        }
        //关机
        function poweroff(){
            parent.sendSystemOsCmd('POWER_OFF_CMD','-1');
        }
        //截屏图片
        function screenCaptureOs(){
            parent.sendSystemOsCmd('SCREEN_CAPTURE_CMD','-1');
        }

        //切换窗口开始
        function selectWinStart(){
            parent.sendSystemOsCmd('SELECT_WIN_START_CMD','-1');
        }
        //切换窗口改变选择
        function selectWinChange(){
            parent.sendSystemOsCmd('SELECT_WIN_CHANGE_CMD','-1');
        }
        //切换窗口完成
        function selectWinEnd(){
            parent.sendSystemOsCmd('SELECT_WIN_END_CMD','-1');
        }
        //重启
        function reboot(){
            parent.sendSystemOsCmd('POWER_REBOOT_CMD','-1');
        }
        //睡眠
        function sleep(){
            parent.sendSystemOsCmd('POWER_SLEEP_CMD','-1');
        }
        //隐藏所窗口
        function hiddenAllWin(){
            parent.sendSystemOsCmd('HIDDEN_ALL_WIN_CMD','-1');
        }
        //静音与解除静音
        function systemMuteReduce(){
            parent.sendSystemOsCmd('MUTE_CMD','-1');
        }
    </script>
</body>
</html>
